using UnityEngine;
using System.Collections;

public class LoadScene : MonoBehaviour {

	public float time;
	public string sceneName;
	public bool isReload;
	float cronometro;
	
	// Update is called once per frame
	void Update () 
	{
		cronometro += Time.deltaTime;
		if(cronometro > time)
		{
			if(isReload)
			{
				Application.LoadLevel(Application.loadedLevel);
			}
			else
			{
				Application.LoadLevel(sceneName);
			}
		}
	}
}
